#include<iostream>
using namespace std;

const int SIZE = 3;
int main(int argc, char const *argv[])
{
    double rate[SIZE]{0};
    int res[SIZE]{0};
    char i2c[SIZE] = {'W','T','L'};

    for(int i = 0;i<SIZE;++i)
    {
        for(int j = 0;j<SIZE;++j)
        {
            double tmp; scanf("%lf",&tmp);
            if(tmp > rate[i])
            {
                rate[i] = tmp;
                res[i] = j;
            }
        }
    }
    for(int i = 0;i<SIZE;++i)
        printf("%c ",i2c[res[i]]);

    double s = 0.65; for(int i = 0;i<SIZE;++i) s *= rate[i];
    printf("%.2f",(s-1)*2);

    return 0;
}